﻿<local:GestureEngineSettingsWindow x:Class="PresentationAid.Lib.GestureEngines.GestureSettings.KeystrokeSettings"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:elysium="http://schemas.codeplex.com/elysium"
             xmlns:params="http://schemas.codeplex.com/elysium/params"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:PresentationAid.Lib.GestureEngines.GestureSettings"
             params:Manager.Theme="Light"
             params:Manager.AccentBrush="{x:Static elysium:AccentBrushes.Blue}"
             params:Manager.ContrastBrush="White"
             Background="{DynamicResource BackgroundBrush}"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid Margin="20">

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <TextBlock TextWrapping="Wrap">
            Keystroke engine supports mapping gestures to keystroke actions. After gesture is detected,
            the mapped key is sent to the active window. Mapping different gestures to same key is possible.<LineBreak />
            <LineBreak />
            <Bold>Actions in list are in bold and do not represent a key.</Bold>
        </TextBlock>

        <Grid Name="SettingGrid" Grid.Row="1" Margin="10,10,10,30">
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>

            <Grid.RowDefinitions>
                <RowDefinition />
            </Grid.RowDefinitions>

            <Border Grid.ColumnSpan="3" BorderThickness="0,0,0,1" BorderBrush="{DynamicResource HighlightBrush}" VerticalAlignment="Bottom" Margin="0,0,0,10" />

            <TextBlock FontSize="15" FontWeight="Light" Margin="15,5,5,20" Foreground="{DynamicResource LowlightBrush}" VerticalAlignment="Bottom">Gesture</TextBlock>
            <TextBlock FontSize="15" FontWeight="Light" Margin="15,5,5,20" Foreground="{DynamicResource LowlightBrush}" Grid.Column="1" VerticalAlignment="Bottom">Key / Action</TextBlock>
        </Grid>

        <Button Name="RestoreDefaultsButton" Grid.Row="2" HorizontalAlignment="Left" ToolTip="Resets mapping to default" Click="RestoreDefaultsButtonClick">RESTORE DEFAULTS</Button>

        <Button Name="SaveButton" Grid.Row="2" HorizontalAlignment="Right" ToolTip="Saves current mapping configuration" FontWeight="Bold" Click="SaveButtonClick">SAVE</Button>

    </Grid>
</local:GestureEngineSettingsWindow>
